<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div class="container2">
		<div class="orders_window">
			<input type="hidden" id="goodsId" value="${goodsId }">
			<input type="hidden" id="num" value="${num }">
			<input type="hidden" id="type" value="${type }">
			<div class="orders_title">
				<div>订单详情</div>
				<div class="orders_line">
					<img src="images/detail/orders_line.png" height="1" width="800">
				</div>
			</div>
			<div class="orders_detail">
				<div class="orders_contact">
					<div class="orders_tel">
						<div>
							<span>订单编号：</span><span>${list.order_sn }</span>
						</div>
						<div>
							<span>订单状态：</span><span>${state }</span>
						</div>
						
						<div class="clear"></div>
					</div>
					<div>
						<span>收货地址：</span><span>${list.receiver_address }</span>
					</div>
				</div>
				<div class="orders_desc">
					<ul>
						<li>
							<div>
								<span>商品名称：</span><span>${list.goods_name }</span>
							</div>
							<div>
								<span>提货方式：</span><span>${list.receipt_method eq "1" ? "自取" : "送货上门"}</span>
							</div>
							<div class="clear"></div>
						</li>
						<li>
							<div>
								<c:choose>
										<c:when test="${type == '3' }">
											<span>商品总价（分）：</span><span>${list.goods_amount }</span>
										</c:when>
										<c:when test="${type == '7' }">
											<span>商品总价（分）：</span><span>${list.goods_amount }</span>
										</c:when>
										<c:otherwise>
											<span>商品总价（元）：</span><span>${list.goods_amount }</span>
										</c:otherwise>
								</c:choose>
							</div>
							<div class="clear"></div>
						</li>
						<li>
							<div>
								<span>赠送积分：</span><span>1</span>
							</div>
							<div>
								<span>数量：</span><span>${list.goods_num }</span>
							</div>
							<div class="clear"></div>
						</li>
						<li>
							<div>
								<span>服务点：</span><span>${list.service_point_id }</span>
							</div>
							<c:if test="${list.integral_rate != null }">
								<div>
									<span>配送积分：</span><span>${list.integral_rate }</span>
								</div>
							</c:if>
							<div class="clear"></div>
						</li>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="orders_operate">
					<div id='div_4_0'>再次购买</div>
					<div id='div_4_1'>确定</div>
					<span id="orderMsg"></span>
				</div>
			</div>
		</div>
	</div>